/**
 * Created by Administrator on 2019/6/5.
 */
/**
 * Created by Administrator on 2019/6/5.
 */
var t = document.querySelector("#toTop");
window.onscroll=function () {
    console.log(document.documentElement.scrollTop > 600 ||document.documentElement.scrollTop > 600);
    if (document.documentElement.scrollTop > 600 ||document.documentElement.scrollTop > 600){
        t.style.display="block";
    }else {
        t.style.display="none";
    }
}
t.addEventListener('click',function () {
    window.scrollTo({
        top:0,
        behavior:'smooth'
    })
})


var zj = document.querySelector("#zj");
var cang =document.querySelector("#cang");


zj.addEventListener("mouseover",function () {
    console.log(123);
    cang.style.display = "block";
})

cang.addEventListener("mouseleave",function () {
    console.log(567);
    cang.style.display = "none";
})